package cn.ekuma.epos.symmetricds.bean.tran;

import java.util.Date;

public class IncomingBatch {
	 public enum Status {
	        LD("Loading"), OK("Ok"), ER("Error"), SK("Skipped");
	        
	        private String description;
	        
	        Status (String desc) {
	            this.description = desc;
	        }
	        
	        @Override
	        public String toString() {
	            return description;
	        }
	    }

	    private long batchId;

	    private String nodeId;

	    private String channelId;

	    private Status status;
	    
	    private boolean errorFlag;
	    
	    private long byteCount;

	    private long networkMillis;

	    private long filterMillis;

	    private long databaseMillis;

	    private long statementCount;

	    private long fallbackInsertCount;

	    private long fallbackUpdateCount;

	    private long missingDeleteCount;
	    
	    private long skipCount;

	    private long failedRowNumber;

	    private String sqlState;

	    private int sqlCode;

	    private String sqlMessage;

	    private String lastUpdatedHostName;

	    private Date lastUpdatedTime;
	    
	    private Date createTime;

	    private boolean retry;
}
